package com.YHVision.qiuzhike.mapper;

import com.YHVision.qiuzhike.model.entity.Question;
import com.YHVision.qiuzhike.model.entity.QuestionFavour;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.lettuce.core.dynamic.annotation.Param;


/**
* @author 48852
* @description 针对表【question_favour(题目收藏)】的数据库操作Mapper
* @createDate 2024-11-26 10:02:18
* @Entity generator.domain.QuestionFavour
*/
public interface QuestionFavourMapper extends BaseMapper<QuestionFavour> {

    /**
     * 分页查询题目收藏列表
     * @param page
     * @param queryWrapper
     * @return
     */

    Page<Question> listFavourQuestionByPage(IPage<Question> page, @Param(Constants.WRAPPER) Wrapper<Question> queryWrapper,long favourUserId);
}




